﻿using AdminSystem.Applications;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace AdminSystem.Write.API.Command.EnterprisesCommand
{
    public class EnterpriseCommand : IRequest<ApiResult<object>>
    {
        /// <summary>
        /// 养殖编号
        /// </summary>
        public int CultivationInfoId { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        [StringLength(50)]
        public string? Variety { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        [StringLength(50)]
        public string? Source { get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        [StringLength(50)]
        public string? TraceabilityId { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [StringLength(50)]
        public string? FirmName { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public int ProvinceId { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        public int CityId { get; set; }
        /// <summary>
        /// 县
        /// </summary>
        public int countyId { get; set; }
        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime EstablishData { get; set; }
        /// <summary>
        /// 公司简介
        /// </summary>
        [StringLength(50)]
        public string? FirmDesc { get; set; }
        /// <summary>
        /// 班组
        /// </summary>
        [StringLength(50)]
        public string? Team { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string? Head { get; set; }
        /// <summary>
        /// 企业照片
        /// </summary>
        [StringLength(500)]
        public string? EnterprisePic { get; set; }
        /// <summary>
        /// 公司地址
        /// </summary>
        [StringLength(500)]
        public string? FirmDZ { get; set; }
    }
}
